<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ES7-新特性</title>
</head>
<body>
<script>
    // 1. 判断元素是否在数组中
    //includes -- 返回值是布尔值  indexOf -- 返回值是数字(1 -1)
    const names = ['zhangSan', 'liSi', 'wangWu'];
    //判断
    console.log(names.includes('liSi'));
    console.log(names.indexOf('liSi'));

    // 2. ** 幂运算 == Math.pow
    console.log(2 ** 10);
    console.log(Math.pow(2, 10));
</script>
</body>
</html>